home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gimp.idb / usr / freeware / include / libgimp / gimpdrawable.h.z / gimpdrawable.h
Encoding:
C/C++ Source or Header  |  2002-07-08  |  2.8 KB  |  78 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimpdrawable.h
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Lesser General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  * 
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
  14.  * Lesser General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Lesser General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */         
  21.  
  22. #ifndef __GIMP_DRAWABLE_H__
  23. #define __GIMP_DRAWABLE_H__
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif /* __cplusplus */
  28.  
  29. /* For information look into the C source or the html documentation */
  30.  
  31. #define gimp_drawable_offset    gimp_channel_ops_offset
  32. #define gimp_drawable_image_id  gimp_drawable_image
  33. #define gimp_drawable_bpp       gimp_drawable_bytes
  34.  
  35.  
  36. struct _GimpDrawable
  37. {
  38.   gint32    id;            /* drawable ID */
  39.   guint     width;         /* width of drawble */
  40.   guint     height;        /* height of drawble */
  41.   guint     bpp;           /* bytes per pixel of drawable */
  42.   guint     ntile_rows;    /* # of tile rows */
  43.   guint     ntile_cols;    /* # of tile columns */
  44.   GimpTile *tiles;         /* the normal tiles */
  45.   GimpTile *shadow_tiles;  /* the shadow tiles */
  46. };
  47.  
  48.  
  49. GimpDrawable * gimp_drawable_get                (gint32        drawable_ID);
  50. void           gimp_drawable_detach             (GimpDrawable *drawable);
  51. void           gimp_drawable_flush              (GimpDrawable *drawable);
  52. void           gimp_drawable_delete             (GimpDrawable *drawable);
  53. gchar        * gimp_drawable_name               (gint32        drawable_ID);
  54. gboolean       gimp_drawable_visible            (gint32        drawable_ID);
  55. void           gimp_drawable_set_name           (gint32        drawable_ID,
  56.                          gchar        *name);
  57. void           gimp_drawable_set_visible        (gint32        drawable_ID,
  58.                          gboolean      visible);
  59. GimpTile     * gimp_drawable_get_tile           (GimpDrawable *drawable,
  60.                          gint          shadow,
  61.                          gint          row,
  62.                          gint          col);
  63. GimpTile     * gimp_drawable_get_tile2          (GimpDrawable *drawable,
  64.                          gint          shadow,
  65.                          gint          x,
  66.                          gint          y);
  67.  
  68. guchar       * gimp_drawable_get_thumbnail_data (gint32        drawable_ID,
  69.                          gint         *width,
  70.                          gint         *height,
  71.                          gint         *bpp);
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif /* __cplusplus */
  76.  
  77. #endif /* __GIMP_DRAWABLE_H__ */
  78.